package com.qitmiaojie.service;

import com.qitmiaojie.controller.utils.Result;
import com.qitmiaojie.pojo.Malfunction;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface MalfunctionService extends IService<Malfunction> {

    /***
    * @description 新增报修
    * @param malfunction
    * @return
    * @author
    * @date
    */
    Result insetMalfunction(Malfunction malfunction);

    /***
    * @description 查询所有报修信息
    *
    * @return
    * @author
    * @date
    */
    Result getAllById();

    /***
    * @description del
    * @param id
    * @return
    * @author
    * @date
    */
    Result del(Integer id);

    /***
    * @description 评分
    * @param id
     * @param value
     * @param advice
    * @return
    * @author
    * @date
    */
    Result evaluate(Integer id, Integer value, String advice);

    Result getMalfunctionAll(String date, String floor, String address, String phone, Integer status, Integer currentPage, Integer size);

    Result updateMalfunctionStatusById(Integer id, Integer status);
}
